//
//  VoicePlayManager.h
//  BuxProject
//
//  Created by iOS的 on 2021/12/20.
//  Copyright © 2020 Moitnea. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef void (^voicePlayRelevantBlock)(NSString *message,BOOL success);

@interface VoicePlayManager : NSObject

///  播放网络音频地址
@property (nonatomic, copy) NSString *voiceUrl;

@property (nonatomic, assign) NSInteger playIndexrow;

@property (nonatomic,strong) AVAudioPlayer *voicePlayer;



+(instancetype)shareManager;


// 播放网络声音
-(void)voice_play:(NSString *)path withCompletionBlock:(voicePlayRelevantBlock)completionBlock;
// 停止播放网络声音
-(void)play_stop;
// 销毁
-(void)play_dealloc;

@end

NS_ASSUME_NONNULL_END
